<template>
  <div>
    <p>新闻分类的内容</p>
	<button @click="add">+1</button>
	<span>{{ num }}</span>
  </div>
</template>

<script>
export default {
	name: 'newsType',
	data() {
		return {
			num: 0
		}
	},
	methods: {
		add() {
			this.num++;
		}
	}
};
</script>

<style>
</style>